import { pa } from 'element-plus/es/locale';

/*
 * @description:
 * @Author: jhw
 * @Date: 2023-05-14 00:41:25
 * @LastEditors: jhw
 * @LastEditTime: 2024-06-25 11:04:23
 */
export default [
  {
    path: '/home',
    name: 'Home',
    redirect: '/home/index',
    meta: {
      title: 'Home',
      icon: 'home',
      auth: [],
    },
    component: () => import('@/layout/default/index.vue'),
    children: [
      {
        path: 'index',
        name: 'HomePage',
        meta: {
          title: 'table封装',
          auth: [],
        },
        component: () => import('@/views/home/index.vue'),
      },
      // echarts封装
      {
        path: 'echartsIndex',
        name: 'EchartsPage',
        meta: {
          title: 'echarts封装',
          auth: [],
        },
        component: () => import('@/views/home/echartsIndex.vue'),
      },
      // form表单封装
      {
        path: 'formIndex',
        name: 'FormPage',
        meta: {
          title: '搜索表单封装',
          auth: [],
        },
        component: () => import('@/views/home/formIndex.vue'),
      },
      // 新增/修改 表单封装
      {
        path: 'addFormIndex',
        name: 'AddFormPage',
        meta: {
          title: '新增/修改表单封装',
          auth: [],
        },
        component: () => import('@/views/home/addFormIndex.vue'),
      },
      {
        path: 'https://www.baidu.com/',
        name: 'LinkPage',
        meta: {
          title: '外链',
          auth: [],
        },
      },
    ],
  },
];
